<template>
  <router-view></router-view>
</template>
<script setup lang="ts">
const router = useRouter();
const route = useRoute();

const setRouter = () => {
  if (route.path == "/admin/main/room") {
    router.replace("/admin/main");
  }
};
watch(
  () => route.path,
  () => {
    nextTick(() => {
      setRouter();
    });
  }
);
onMounted(() => {
  setRouter();
});
</script>
